import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

const userRouter: Array<RouteObject> = [
	{
		element: <LayoutIndex />,
		meta: {
			title: "朋友圈管理"
		},
		children: [
			{
				path: "/circleFriend/index",
				element: lazyLoad(React.lazy(() => import("@/views/circleFriend/CircleFriendList/index"))),
				meta: {
					requiresAuth: true,
					title: "我的朋友圈",
					key: "circleFriendList"
				}
			},
			{
				path: "/circleFriend/dianzan",
				element: lazyLoad(React.lazy(() => import("@/views/circleFriend/CircleFriendDianzan/index"))),
				meta: {
					requiresAuth: true,
					title: "点赞监控",
					key: "CircleFriendDianzan"
				}
			}
			// {
			// 	path: "/circleFriend/add",
			// 	element: lazyLoad(React.lazy(() => import("@/views/circleFriend/circleFriendAdd/index"))),
			// 	meta: {
			// 		requiresAuth: true,
			// 		title: "发布朋友圈",
			// 		key: "circleFriendAdd"
			// 	}
			// }
		]
	}
];

export default userRouter;
